﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Castle.ActiveRecord;

namespace SinsenWeb.Controllers
{
    public class ScaffoldingController<T>:BaseController
    {
        public ActionResult Index()
        {
            return RedirectToAction("List");
        }

        public ActionResult List()
        {
            ViewData.Model = ActiveRecordBase<T>.FindAll().ToList() ;

            return View("ScaffoldList");
        }
    }
}
